package com.jilefojing.beans.enums;

/**
 * 服务程序类型
 * 
 * @author jgshun
 * 
 */
public enum ServerTypeEnum {
	/**
	 * (short) 1, "极乐佛经web端"
	 */
	jilefojing_WEB((short) 1, "极乐佛经web端", true, false),
	/**
	 * (short) 1, "极乐佛经web端"
	 */
	jilefojing_WAP((short) 2, "极乐佛经wap端", true, false),
	/**
	 * (short) 3, "极乐佛经app端"
	 */
	jilefojing_APP((short) 3, "极乐佛经app端", true, false),
	/**
	 * (short) 4, "极乐佛经管理平台"
	 */
	jilefojing_MANAGER((short) 4, "极乐佛经管理平台", false, true);

	private short value;
	private String msg;
	private boolean isjilefojingServer;// 是否是极乐佛经常用程序:即面向用户的程序
	private boolean isjilefojingManagerServer;// 是否是极乐佛经管理服务程序

	private ServerTypeEnum(short value, String msg, boolean isjilefojingServer,
			boolean isjilefojingManagerServer) {
		this.value = value;
		this.msg = msg;
		this.isjilefojingServer = isjilefojingServer;
		this.isjilefojingManagerServer = isjilefojingManagerServer;
	}

	public static ServerTypeEnum getAccessTypeEnumByValue(short value) {
		for (ServerTypeEnum _Enum : ServerTypeEnum.values()) {
			if (_Enum.getValue() == value) {
				return _Enum;
			}
		}
		return null;
	}

	public short getValue() {
		return value;
	}

	public void setValue(short value) {
		this.value = value;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public boolean isjilefojingServer() {
		return isjilefojingServer;
	}

	public void setjilefojingServer(boolean isjilefojingServer) {
		this.isjilefojingServer = isjilefojingServer;
	}

	public boolean isjilefojingManagerServer() {
		return isjilefojingManagerServer;
	}

	public void setjilefojingManagerServer(boolean isjilefojingManagerServer) {
		this.isjilefojingManagerServer = isjilefojingManagerServer;
	}

}
